<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<script type="text/javascript">
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoModify"/>${area.areaName}</span></li>
			<li class="line">line</li>
        	<c:if test="${p:isPower('/area/areaRemove.shtml',sessionScope.loginAccount)}">
			<li><a class="delete" href="<c:url value="/area/areaRemove.shtml"/>?areaId=${area.areaId}" target="ajaxTodo" rel="areaShowPage"><span><spring:message code="search.btnRemove"/></span></a></li>
			</c:if>
		</ul>
	</div>
    <form id="areaUpdateFrom" method="post" action="<c:url value="/area/areaModify.shtml"/>" onsubmit="return validateCallback(this,navTabAjaxDone);">
        <table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">             
        	<tbody>
                <tr>
                	<td>所属上级：</td>
                    <td colspan="3">
                        <input type="hidden" name="area_modify.areaIdParent" id="area_modify_areaIdParent" value="${parentArea.areaId}"/>
                        <input type="hidden" name="area_modify.areaGradeParent" id="area_modify_areaGradeParent" value="${parentArea.areaGrade}"/>
                        <input type="text" name="area_modify.areaNameParent" id="area_modify_areaNameParent" value="${parentArea.areaName}" readonly="readonly"/>
                    	<a class="btnLook" href="<c:url value="/area/goAreaParentLookup.shtml"/>" lookupGroup="area_modify">选择所属地区</a>
		                <a class="btnClean" href="javascript:;" onclick="$('#area_modify_areaIdParent').val('');$('#area_modify_areaGradeParent').val('');$('#area_modify_areaNameParent').val('');">清空</a>
                    </td>
                </tr>
                <tr>
                    <td>地区名称：</td>
                    <td>
                        <input type="hidden" name="area_modify_areaId" id="area_modify_areaId" value="${area.areaId}"/>
                        <input type="text" class="required" name="area_modify_areaName" id="area_modify_areaName" value="${area.areaName}" maxlength="20"/>
                    </td>
                    <td>地区编码：</td>
                    <td>
                        <input type="text" name="area_add_areaCode" id="area_add_areaCode" value="${area.areaCode}" maxlength="20"/>
                    </td>
                </tr>
                <tr>
                    <td>地区区号：</td>
                    <td>
                        <input type="text" name="area_modify_areaNumber" id="area_modify_areaNumber" value="${area.areaNumber}" maxlength="6"/>
                    </td>
                    <td>地区邮编：</td>
                    <td>
                        <input type="text" name="area_modify_areaZip" id="area_modify_areaZip" value="${area.areaZip}" maxlength="6"/>
                    </td>
                </tr>
                <tr>                    
                	<td>显示排序</td>
                    <td colspan="3">
                        <input type="text" name="area_modify_areaSort" id="area_modify_areaSort" value="${area.areaSort}" maxlength="3"/>
                    </td>
                </tr>
            </tbody>
    	</table>
		<div class="panelBar">
        	<div class="buttonActive">
        	<c:if test="${p:isPower('/area/areaModify.shtml',sessionScope.loginAccount)}">
           	<div class="buttonContent"><button type="submit"><spring:message code="modify.btnModify"/></button></div>
           	</c:if>
           	</div>
		</div>
    </form>
</div>